<?php

namespace App\Models\Collection;

use Illuminate\Database\Eloquent\Model;

class UserInfo extends Model
{
    /**
     * 催收数据库连接
     */
    protected $connection = 'backend';

    /**
     * 硕士
     */
    CONST EDU_MASTER = '01';

    /**
     * 本科
     */
    CONST EDU_UNDERGRADUATE = '02';

    /**
     * 大专
     */
    CONST EDU_COLLEGE = '03';

    /**
     * 高中
     */
    CONST EDU_HIGH = '04';

    /**
     * 初中
     */
    CONST EDU_JUNIOR = '05';

    /**
     * 未知
     */
    CONST EDU_UNKNOWN = '99';

    /**
     * 配偶
     */
    CONST RELATION_SPOUSE = '1';

    /**
     * 父母
     */
    CONST RELATION_PARENTS = '2';

    /**
     * 子女
     */
    CONST RELATION_CHILDREN = '3';

    /**
     * 兄弟姐妹
     */
    CONST RELATION_BRO_SIS = '4';

    /**
     * 朋友
     */
    CONST RELATION_FRIEND = '5';

    /**
     * 同事
     */
    CONST RELATION_WORKMATE = '6';

    /**
     * 其他
     */
    CONST RELATION_OTHER = '7';

    /*
     * 新流调用流程标志
     * */
    CONST FLOW_FLAG_FULL = 1, FLOW_FLAG_TMP = 0;

    /**
     * 枚举学历数据
     * */
    static $EDUCATION_ENUM = array(
        self::EDU_MASTER        => '硕士',
        self::EDU_UNDERGRADUATE => '本科',
        self::EDU_COLLEGE       => '大专',
        self::EDU_HIGH          => '高中',
        self::EDU_JUNIOR        => '初中',
        self::EDU_UNKNOWN       => '未知'
    );

    /*
     * 枚举关系数据
     * */
    static $USER_RELATION = array(
        self::RELATION_SPOUSE   => '配偶',
        self::RELATION_PARENTS  => '父母',
        self::RELATION_CHILDREN => '子女',
        self::RELATION_BRO_SIS  => '兄弟姐妹',
        self::RELATION_FRIEND   => '朋友',
        self::RELATION_WORKMATE => '同事',
        self::RELATION_OTHER    => '其他'
    );
}